package com.leo.filter;

import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: MyFilter3
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-03 17:28
 * @Version: 1.0
 */
@WebFilter(urlPatterns = "/*", filterName = "myFilter3")
public class MyFilter3 extends OncePerRequestFilter {
    @Override
    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
        System.out.println("MyFilter3 执行过滤");
        filterChain.doFilter(httpServletRequest, httpServletResponse);
    }
}
